<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewCommandeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewCommandeLabel_id}"/>
                    <h:outputText value="#{CommandeBean.selected.id}" title="#{bundle.ViewCommandeTitle_id}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_etat}"/>
                    <h:outputText value="#{CommandeBean.selected.etat}" title="#{bundle.ViewCommandeTitle_etat}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_dateCommande}"/>
                    <h:outputText value="#{CommandeBean.selected.dateCommande}" title="#{bundle.ViewCommandeTitle_dateCommande}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCommandeLabel_dateLivraison}"/>
                    <h:outputText value="#{CommandeBean.selected.dateLivraison}" title="#{bundle.ViewCommandeTitle_dateLivraison}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCommandeLabel_prixTotalLivraison}"/>
                    <h:outputText value="#{CommandeBean.selected.prixTotalLivraison}" title="#{bundle.ViewCommandeTitle_prixTotalLivraison}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_modePayement}"/>
                    <h:outputText value="#{CommandeBean.selected.modePayement}" title="#{bundle.ViewCommandeTitle_modePayement}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_montant}"/>
                    <h:outputText value="#{CommandeBean.selected.montant}" title="#{bundle.ViewCommandeTitle_montant}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_adresseFacturation}"/>
                    <h:outputText value="#{CommandeBean.selected.adresseFacturation}" title="#{bundle.ViewCommandeTitle_adresseFacturation}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_adresseLivraison}"/>
                    <h:outputText value="#{CommandeBean.selected.adresseLivraison}" title="#{bundle.ViewCommandeTitle_adresseLivraison}"/>
                    <h:outputText value="#{bundle.ViewCommandeLabel_client}"/>
                    <h:outputText value="#{CommandeBean.selected.client}" title="#{bundle.ViewCommandeTitle_client}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{CommandeBean.destroyAndView}" value="#{bundle.ViewCommandeDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewCommandeEditLink}"/>
                <br />
                <h:commandLink action="#{CommandeBean.prepareCreate}" value="#{bundle.ViewCommandeCreateLink}" />
                <br />
                <h:commandLink action="#{CommandeBean.prepareList}" value="#{bundle.ViewCommandeShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewCommandeIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
